﻿<Window x:Class="CompositeWPFContrib.Composite.Wpf.Controls.ViewDialog"
    xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
    xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml" Background="{DynamicResource {x:Static SystemColors.ControlBrushKey}}"
    SizeToContent="WidthAndHeight" ResizeMode="NoResize" ShowInTaskbar="False">
    <DockPanel> 
        <StackPanel DockPanel.Dock="Bottom" Orientation="Horizontal" Visibility="{Binding RelativeSource={RelativeSource AncestorType=Window},Path=ButtonPanelVisibility}">
            <Button Width="75" IsDefault="True" x:Uid="ViewDialog_AcceptButton" Click="OnAcceptButtonClick" Margin="4">_OK</Button>
            <Button Width="75" IsCancel="True" x:Uid="ViewDialog_CancelButton" Click="OnCancelButtonClick" Margin="0,4,4,4">_Cancel</Button>
        </StackPanel>
        <ContentPresenter Content="{Binding Path=View,RelativeSource={RelativeSource Mode=FindAncestor,AncestorType=Window}}"/>
    </DockPanel>
</Window>
